<?php

declare(strict_types=1);

namespace App\Request\Chat;

use App\Request\BaseCommonRequest;

class SetMemberRoleRequest extends BaseCommonRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'room_number' => 'required',
            'operator' => 'required',
            'target' => 'required',
            'opt' => 'required|in:1,2,-1,-2',
            'optvalue' => 'required|boolean'
        ];
    }

}